import request from '@/config/axios'

// 分页
export const getPage = async (params: any) => {
  return await request.get({url: `/dine/config/time-range/page`, params})
}

// 列表
export const getList = async () => {
  return await request.get({url: `/dine/config/time-range/list`})
}

// 详情
export const getDetailById = async (id: number | string) => {
  return await request.get({url: `/dine/config/time-range/get/` + id})
}

// 创建
export const create = async (data: any) => {
  return await request.post({url: `/dine/config/time-range/create`, data})
}

// 修改
export const updateById = async (data: any) => {
  return await request.post({url: `/dine/config/time-range/update`, data})
}

// 删除
export const deleteById = async (id: number | string) => {
  return await request.post({url: `/dine/config/time-range/delete/` + id})
}
